package io.halo.payment.constants;

/**
 * 微信支付常量
 *
 * @author: austin
 * @since: 2022/12/21 18:04
 */
public class WxPayConst {

    /**
     * 获取小程序登录授权凭证
     */
    public static final String JS_CODE2SESSION = "https://api.weixin.qq.com/sns/jscode2session";
    /**
     * JSAPI下单
     */
    public static final String JSAPI = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";

    /**
     * 微信支付返回状态码return_code：失败
     */
    public static final String FAIL = "FAIL";

    /**
     * 微信支付返回状态码return_code：成功
     */
    public static final String SUCCESS = "SUCCESS";

    /**
     * 微信支付返回状态码return_msg：成功
     */
    public static final String OK = "OK";


    public static final String APPID = "appId";
    public static final String PREPAY_ID = "prepay_id";
    public static final String PACKAGE = "package";
    public static final String TIMESTAMP = "timeStamp";
    public static final String NONCE_STR = "nonceStr";
    public static final String SIGN_TYPE = "signType";
    public static final String OUT_TRADE_NO = "out_trade_no";
    public static final String TOTAL_FEE = "total_fee";
    public static final String SPBILL_CREATE_IP = "spbill_create_ip";
    public static final String NOTIFY_URL = "notify_url";
    public static final String TRADE_TYPE = "trade_type";
    public static final String OPENID = "openid";
    public static final String BODY = "body";
    public static final String PAY_SIGN = "paySign";

}
